package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.EcologyCastConf;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdminSimpleCastCollectionVO;
import com.sc.nft.entity.vo.ecology.EcologyCastListVO;
import com.sc.nft.entity.vo.ecology.AdminGetPageCastConfVO;
import com.sc.nft.entity.vo.ecology.EcologyCastDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 生态-铸造-配置(sc_ecology_cast_conf)数据Mapper
 *
 * @author Sun
 * @since 2023-10-13 17:22:11
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface EcologyCastConfMapper extends BaseMapper<EcologyCastConf> {

    /**
     * 分页获取生态铸造配置
     * @param page
     * @param collectionName
     * @return
     */
    Page<AdminGetPageCastConfVO> getPageCastConf(Page page, @Param("collectionName") String collectionName);

    /**
     * APP获取分页生态铸造列表
     * @param page
     * @return
     */
    Page<EcologyCastListVO> getPageEcologyCast(Page page,@Param("userCreatorId") Long userCreatorId);

    /**
     * APP获取生态铸造详情
     * @param ecologyCastConfId
     * @return
     */
    EcologyCastDetailsVO getProductDetailsById(@Param("ecologyCastConfId") Long ecologyCastConfId);

    /**
     * 获取简单的生态铸造配置
     * @param page
     * @return
     */
    Page<AdminSimpleCastCollectionVO> getSimplePage(Page page);

    /**
     *
     * @return
     */
    List<EcologyCastConf> getAll();
}
